package com.easygem.common.model.front;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 * @author 何维佳
 * @version 1.0
 * @className Circuit
 * @Description TODO
 * @date 2025/2/27 18:22
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("")
@Table(name = "`bg_circuit`")
@Alias("FrontCircuit")  // 👈 修改此处
public class Circuit {

    @Id
    @Column(name = "`circuitId`")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long circuitId;

    @Column(name = "`circuitType`")
    @ApiModelProperty("线路名称")
    private String circuitType;

    // 归属人ID字段，可为空，对应数据库中可为NULL的情况
    @Column(name = "`circuitTariff`")
    @ApiModelProperty("线路资费")
    private BigDecimal circuitTariff;





}
